/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tcc.sglj.model;

import javax.persistence.CascadeType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Entity;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.OneToMany;
import java.util.Collection;

/**
 *
 * @author Leandro
 */
@Entity
@Table(name = "tb_marca")
public class VehicleMark {
    @Id
    @Column(name = "id_marca")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int idMark;

    @Column(name = "nm_marca")
    private String mark;

    /**
     * @return the idMark
     */
    public int getIdMark() {
        return idMark;
    }

    /**
     * @param idMark the idMark to set
     */
    public void setIdMark(int idMark) {
        this.idMark = idMark;
    }

    /**
     * @return the mark
     */
    public String getMark() {
        return mark;
    }

    /**
     * @param mark the mark to set
     */
    public void setMark(String mark) {
        this.mark = mark;
    }

   // @OneToMany(mappedBy = "carbrand")
    //private Collection<CarModel> carmodel;



}
